package com.yanxu.strategy;

/**
 * @author 折戟沉沙铁未销
 * @version V1.0
 * @date 2025/4/15-2025
 * @Description: 客户端
 */
public class Test2 {
    public static void main(String[] args) {
        PromotionStrategy promotionStrategy = null;
        String key = "LIJIAN";

        if (key.equals("LIJIAN")) {
            promotionStrategy = new LijianPromotion();
        } else if (key.equals("MANJIAN")) {
            promotionStrategy = new ManJianPromotion();
        } else if (key.equals("FANXIAN")) {
            promotionStrategy = new FanxianPromotion();
        }
        promotionStrategy.doPromotion();
    }
}